Don't place dnd cursor in placeholder text
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Dec 2017 15:52:33 +0000 (10:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Dec 2017 15:54:21 +0000 (10:54 -0500)
That is just misleading - the entire placeholder text is going
to be replaced by the drop.

gtk/gtkentry.c

index 8f3aa8e7480b2bd87344843ed59b3b3fb10cb8fc..a29a207d0e13d87bc39527033d429803d9273e81 100644 (file)
@@ -10029,8 +10029,11 @@ gtk_entry_drag_motion (GtkWidget        *widget,
       priv->dnd_position = -1;
     }
 
+  if (show_placeholder_text (entry))
+    priv->dnd_position = -1;
+
   gdk_drag_status (context, suggested_action, time);
-  if (priv->dnd_position == -1)
+  if (suggested_action == 0)
     gtk_drag_unhighlight (widget);
   else
     gtk_drag_highlight (widget);